package com.jsgt.greekfire.bean

import android.os.Parcel
import android.os.Parcelable

class PrivilegeWalletBean() :Parcelable {
    var guid: Int = 0
    var userId: Int = 0
    var assetTypeId: String? = null
    var assetName: String? = null
    var amount: String? = null
    var frozenAmount: String? = null

    constructor(parcel: Parcel) : this() {
        guid = parcel.readInt()
        userId = parcel.readInt()
        assetTypeId = parcel.readString()
        assetName = parcel.readString()
        amount = parcel.readString()
        frozenAmount = parcel.readString()
    }

    override fun writeToParcel(parcel: Parcel, flags: Int) {
        parcel.writeInt(guid)
        parcel.writeInt(userId)
        parcel.writeString(assetTypeId)
        parcel.writeString(assetName)
        parcel.writeString(amount)
        parcel.writeString(frozenAmount)
    }

    override fun describeContents(): Int {
        return 0
    }

    companion object CREATOR : Parcelable.Creator<PrivilegeWalletBean> {
        override fun createFromParcel(parcel: Parcel): PrivilegeWalletBean {
            return PrivilegeWalletBean(parcel)
        }

        override fun newArray(size: Int): Array<PrivilegeWalletBean?> {
            return arrayOfNulls(size)
        }
    }

}